<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        .nav{
            width: 1200px;
            background-color: gray;
            margin: 0 auto;
        }
        a{
            text-decoration: none;
            display: inline-block;
            font-size: 12px;
            padding: 20px;
            color: #fff;
        }
        a:hover{
            color: orange;
            background-color: #fff;
        }

    </style>
</head>
<body>
    <div class="nav">
        <a href="#">新浪导航</a>
        <a href="#">新浪导航</a>
        <a href="#">新浪导航</a>
        <a href="#">新浪导航</a>
        <a href="#">新浪导航</a>

    </div>
</body>
</html>